<div id="pages_mall_index_index" class="scroll" style="height:100%;display:none;"><master title="首页管理">
  <listpage ref="listpage"></listpage>
</master></div>
<script type="text/javascript">
(function (G) {
  G.vue("pages_mall_index_index",{
  "usingComponents": {
    "master": "/components/Master/Master",
    "listpage": "/components/List/Page/Page"
  }
},{
    data: {
      title: ''
    },
    methods:{
      load: function (next) {
        this.selectComponent('#listpage').load(next);
      },
      refresh: function (next) {
        this.selectComponent('#listpage').refresh(next);
      }
    },
    mounted:function(){
      var _this = this;
      this.selectComponent('#listpage').init({
        getUrl: [
          { type: 'banner', name: '广告轮播' },
          { type: 'category', name: '分类区' },
          { type: 'recommend', name: '为你推荐' }
        ],
        models: {
          name: {
            label: '区域名称'
          }
        },
        canAdd: false,
        actions: {
          edit: {
            action: function (event) {
              G.$go(G.string('/pages/mall/region/list?type={type}&name={name}')._eval(event.detail));
            },
            name: '查看'
          }
        }
      })
      this.load();
    }
  });
})(Y)
</script>